package com.example.miniomultipartupload.service;

import com.example.miniomultipartupload.domain.bo.MultipartInitBO;
import com.example.miniomultipartupload.domain.param.MultipartCompleteParam;
import com.example.miniomultipartupload.domain.param.MultipartInitParam;
import org.springframework.web.multipart.MultipartFile;

public interface IMultipartService {
    /**
     * 分片上传初始化
     *
     * @return /
     */
    MultipartInitBO initMultiPartUpload(MultipartInitParam requestParam);

    /**
     * 完成分片上传
     *
     * @return /
     */
    String mergeMultipartUpload(MultipartCompleteParam param);

    /**
     * 分片上传
     * @param file
     * @param uploadId
     * @param chunk
     * @return
     */
    String chunkUpload(MultipartFile file, String uploadId, String chunk);
}
